package duoqiao;

public class Teacher extends Person{
    String StuId;
    Teacher(String name,int age,String address,String stuId){
        super(name, age,address);
        this.StuId = stuId;
    }

    @Override
    void sayHi() {
        System.out.println("大家好，我叫"+name+",今年"+age+"家住"+address+"学号为"+StuId);
    }
}
